<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>商品修改 - 家哇(Jia Wa Admin)后台管理系统</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/materialdesignicons.min.css" rel="stylesheet">
<!--标签插件-->
<link rel="stylesheet" href="js/jquery-tags-input/jquery.tagsinput.min.css">
<link href="css/style.min.css" rel="stylesheet">
</head>
  
<body>
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <%--头部和侧边菜单栏--%>
    <jsp:include page="header.jsp"/>

    <!--页面主要内容-->
    <main class="lyear-layout-content">

      <div class="container-fluid">

        <div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="card-body">

                <form action="/After_end/AfterModGoods" method="post" class="row">
                  <div class="form-group col-md-12">
                    <label for="type">产品类型</label>
                    <div class="form-controls">
                      <select name="tid" class="form-control" id="type" >
<%--                        <option value="1">椅子</option>--%>
<%--                        <option value="2">照明家具</option>--%>
<%--                        <option value="3">桌子</option>--%>
<%--                        <option value="4">沙发</option>--%>
                        <c:forEach items="${items}" var="items">
                          <option value="${items.id}">${items.name}</option> "
                        </c:forEach>
                      </select>
                    </div>
                  </div>
                  <div class="form-group col-md-12">
                    <label for="sname">品牌</label>
                      <input type="hidden" name="pid" value="${good.pid}">
                    <input type="text" class="form-control" id="sname" name="sname" value="${good.sname}" placeholder="请输入品牌" />
                  </div>
                  <div class="form-group col-md-12">
                    <label for="sprice">产品定价</label>
                    <input type="text" class="form-control" id="sprice" name="sprice" value="${good.sprice}" placeholder="产品定价(￥)" />
                  </div>
                  <div class="form-group col-md-12">
                    <label for="stock">产品库存</label>
                    <input type="text" class="form-control" id="stock" name="stock" value="${good.stock}" placeholder="产品库存(个)" />
                  </div>
                  <div class="form-group col-md-12">
                    <label for="summary">描述</label>
                    <textarea class="form-control" id="summary" name="summary" rows="4" placeholder="描述" >${good.summary}</textarea>
                  </div>
                  <div class="form-group col-md-12">
                    <label>多图上传</label>
                    <div class="form-controls">

                      <ul class="list-inline clearfix lyear-uploads-pic">
                        <li class="col-xs-4 col-sm-3 col-md-2">
                          <figure>
                            <img src="images/gallery/15.jpg" alt="图片一">
                            <figcaption>
                              <a class="btn btn-round btn-square btn-primary" href="#!"><i class="mdi mdi-eye"></i></a>
                              <a class="btn btn-round btn-square btn-danger" href="#!"><i class="mdi mdi-delete"></i></a>
                            </figcaption>
                          </figure>
                        </li>
                        <li class="col-xs-4 col-sm-3 col-md-2">
                          <figure>
                            <img src="images/gallery/16.jpg" alt="图片二">
                            <figcaption>
                              <a class="btn btn-round btn-square btn-primary" href="#!"><i class="mdi mdi-eye"></i></a>
                              <a class="btn btn-round btn-square btn-danger" href="#!"><i class="mdi mdi-delete"></i></a>
                            </figcaption>
                          </figure>
                        </li>
                        <li class="col-xs-4 col-sm-3 col-md-2">
                          <figure>
                            <img src="images/gallery/17.jpg" alt="图片三">
                            <figcaption>
                              <a class="btn btn-round btn-square btn-primary" href="#!"><i class="mdi mdi-eye"></i></a>
                              <a class="btn btn-round btn-square btn-danger" href="#!"><i class="mdi mdi-delete"></i></a>
                            </figcaption>
                          </figure>
                        </li>
                        <li class="col-xs-4 col-sm-3 col-md-2">
                          <a class="pic-add" id="add-pic-btn" href="#!" title="点击上传"></a>
                        </li>
                      </ul>
                    </div>
                  </div>
                  <div class="form-group col-md-12">
                    <label>状态</label>
                    <div class="clearfix">
                      <label class="lyear-radio radio-inline radio-primary">
                        <input type="radio" name="status" value="0" checked><span>上架</span>
                      </label>
                      <label class="lyear-radio radio-inline radio-primary">
                        <input type="radio" name="status" value="1" ><span>下架</span>
                      </label>
                    </div>
                  </div>
                  <div class="form-group col-md-12">
                    <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
                    <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
                  </div>
                </form>

              </div>
            </div>
          </div>

        </div>

      </div>

    </main>
    <!--End 页面主要内容-->
  </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
<script>
  $(function (){
    $(".nav-subnav:eq(1)").css("display","block");
  })
</script>
</body>
</html>